package com.dnd.monitor.common.enums;

import lombok.Getter;

/**
 * @Author 安贺
 * @CreateTime 2022年08月10日 09:20:00
 * @Description:
 */
@Getter
public enum AreaEnum {
    /**
     * 地区枚举
     */
    XJ("xjImpl","辛集"),
    QHD("qhdImpl","秦皇岛"),
    SJZ("sjzImpl","石家庄"),
    BD("bdImpl","保定"),
    CZ("czImpl","沧州"),
    CD("cdImpl","承德"),
    DZ("dzImpl","定州"),
    HD("hdImpl","邯郸"),
    HS("hsImpl","衡水"),
    LF("lfImpl","廊坊"),
    TS("tsImpl","唐山"),
    XT("xtImpl","邢台"),
    XAXQ("xaxqImpl","雄安新区"),
    ZJK("zjkImpl","张家口");


    private final String strategy;

    private final String cnName;


    AreaEnum(String strategy, String cnName) {
        this.strategy = strategy;
        this.cnName = cnName;
    }

    public static AreaEnum getAreaEnum(String areaName){
        for (AreaEnum value : AreaEnum.values()) {
            if(areaName.equals(value.getCnName())){
                return value;
            }
        }
        return null;
    }
}
